package com.lagou.rpc.boot;

import com.lagou.rpc.client.Client;
import com.lagou.service.UserService;

/**
 * ClientBoot
 *
 * @author thresh
 * @date 2021/2/22 21:57
 */
public class ClientBoot {

    public static void main(String[] args) throws InterruptedException {
        UserService proxy = (UserService) Client.createProxy(UserService.class);

        while (true) {

            String result = proxy.say("我是张无忌");
            System.out.println(result);
            Thread.sleep(3000);
        }
    }


}
